﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Power.WinUI
{
    public partial class WelcomeForm : DevExpress.XtraEditors.XtraForm
    {
        public WelcomeForm()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 用户管控
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUserMgt_Click(object sender, EventArgs e)
        {
            UserInfo.UserInfo users = new UserInfo.UserInfo();
            MainForm.Instance.AddFormInPanel(users);
        }
        /// <summary>
        /// 通信状态
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnComMonitor_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 电表信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDeviceMgt_Click(object sender, EventArgs e)
        {
            MeterInfo.MeterInfo meter = new MeterInfo.MeterInfo();
            MainForm.Instance.AddFormInPanel(meter);
        }
        /// <summary>
        /// 日志管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLogMgt_Click(object sender, EventArgs e)
        {
            LogManager.WinUI.QueryLog qLog = new LogManager.WinUI.QueryLog();
            MainForm.Instance.AddFormInPanel(qLog);            
        }
    }
}